<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page language="java" import="com.sjw.model.User"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="YouAndMe" />
<meta name="keywords" content="YouAndMe" />
<title>YouAndMe</title>
</head>
<body style="background-image: url(img/bgimg.png);">
	<s:if test="#session.user">
		<div class="container">
			<div class="row">
				<div class="col-xs-16">
					<div class="alert alert-success">
						<!-- 						<button class="close" type="button" data-dismiss="alert"></button> -->
						<strong>Welcome</strong>&nbsp;&nbsp;&nbsp;&nbsp;
						<s:property value="#session.user.username" />
						&nbsp;&nbsp;&nbsp;&nbsp;<strong>Last login time:</strong>
						<s:date name="#session.user.lastlogindate" />
						<div style="float: right">
							<a href="user_logout">Logout</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		<%-- <div class="alert alert-danger" >欢迎您：<s:property value="#session.user.username"/></div> --%>
	</s:if>
	<s:else>
		<div class="container">
			<div class="row">
				<div class="col-xs-16">
					<div align="center" style="margin-top: 5%;">
						<!-- 						<button class="close" type="button" data-dismiss="alert">×</button> -->
						<!-- 						<h1> -->
						<!-- 							<font color="red" size="15px">Error</font> -->
						<!-- 						</h1> -->
						<img alt="notfound" src="img/notfound.gif">
						<div>
							<font face="Monotype Corsiva" size="5px"><strong>Please
									Try To </strong><a href="index1.jsp">Login</a> Again</font>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- <div class="alert alert-danger">您没有登录，请登录~</div> -->
	</s:else>
</body>
</html>